import { Component, OnInit, ViewEncapsulation, ViewChild } from '@angular/core';
import { ToastComponent, ToptipsComponent } from 'ngx-weui';


@Component({
  selector: 'app-addpatient',
  templateUrl: './addpatient.component.html',
  styleUrls: ['./addpatient.component.css'],
  encapsulation: ViewEncapsulation.None
})

export class AddpatientComponent implements OnInit {
  @ViewChild('success') successToast: ToastComponent;
  @ViewChild('loading') loadingToast: ToastComponent;
  @ViewChild('toptips') toptips: ToptipsComponent;
  name: '';
  ID: '';
  mobile: '';
  cardId: '';

  constructor() { }

  onshow(type: 'success' | 'loading') {
    (<ToastComponent>this[`${type}Toast`]).onShow();
  }

  hide(){
    console.log(1)
  }

  onSubmit() {
  }
  

  ngOnInit() {
  }
}